package com.studyinghome.exception;


import com.studyinghome.result.CodeMsg;
import lombok.Getter;

/**
 * @author leslie
 */
@Getter
public class GlobalException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private CodeMsg msg;

    public GlobalException(CodeMsg msg) {
        super(msg.toString());
        this.msg = msg;
    }
}
